<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>ProMatch   | 登录</title>
  <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  <!-- Bootstrap 3.3.4 -->
  <link href="<c:url value='/styles/bootstrap/css/bootstrap.min.css'/>" rel="stylesheet" type="text/css" />
  <!-- Font Awesome Icons -->
  <link href="<c:url value='/styles/AdminLTE/css/font-awesome.min.css'/>" rel="stylesheet" type="text/css" />
  <!-- Theme style -->
  <link href="<c:url value='/styles/AdminLTE/css/AdminLTE.min.css'/>" rel="stylesheet" type="text/css" />
  <!-- iCheck -->
  <link href="<c:url value='/styles/plugins/iCheck/square/blue.css'/>" rel="stylesheet" type="text/css" />

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="dist/js/html5shiv.min.js"></script>
  <script src="dist/js/respond.min.js"></script>
  <![endif]-->
</head>
<body class="login-page">
<div class="login-box" style="position: absolute;left: 65%">
  <div class="login-logo">
    <a href="/"><b>ProMatch</b></a>
  </div><!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg">登录</p>
    <form action="<c:url value='/user/login'/>" method="post">
      <div class="form-group has-feedback">
        <input type="text" class="form-control" name = "username" placeholder="用户名"/>
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input type="password" class="form-control" name = "password" placeholder="密码"/>
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      <div class="row">
        <div class="col-xs-8">
          <div class="checkbox icheck">
            <label>
              <input type="checkbox"> 记住我
            </label>
          </div>
        </div><!-- /.col -->
        <div class="col-xs-4">
          <%--<fmt:setLocale value="en"/>--%>
            <button type="submit" class="btn btn-primary btn-block btn-flat"><fmt:message key="button.login" /></button>
        </div><!-- /.col -->
      </div>
    </form>

    <div class="social-auth-links text-center">
      <p>- OR -</p>
      <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-wechat"></i> 使用微信登录</a>
      <a href="#" class="btn btn-block btn-social btn-google-plus btn-flat"><i class="fa fa-qq"></i> 使用QQ登录</a>
    </div><!-- /.social-auth-links -->

    <a href="#">忘记密码</a><br>
    <a href="<c:url value='/register'/>" class="text-center">注册新用户</a>

  </div><!-- /.login-box-body -->
</div><!-- /.login-box -->

<!-- jQuery 2.1.4 -->
<script src="<c:url value='/styles/jQuery/jquery-2.1.4.min.js'/>"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="<c:url value='/styles/bootstrap/js/bootstrap.min.js'/>" type="text/javascript"></script>
<!-- iCheck -->
<script src="<c:url value='/styles/plugins/iCheck/icheck.min.js'/>" type="text/javascript"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
</script>
</body>
</html>
